#include "StdAfx.h"
#include "SocketOptionException.h"

using namespace Adaptive::Win32;
using namespace Adaptive::Network;
using namespace Adaptive::Network::Sockets;

/*--------------------------------------------------------------------------------
 * Constructor / Dispose / Destructor Methods
 *------------------------------------------------------------------------------*/
#pragma region Constructor / Dispose / Destructor Methods
// Initializes a new instance of the class.
SocketOptionException::SocketOptionException() : Exception("Invalid socket option level and name specified.")
{
	_invalidLevelValue = (SocketOptionLevel)0;
	_invalidNameValue = (SocketOptionName)0;
}
SocketOptionException::SocketOptionException(SocketOptionLevel level, SocketOptionName name) :  Exception("Invalid socket option level and name specified.")
{
	_invalidLevelValue = level;
	_invalidNameValue = name;
}

SocketOptionLevel SocketOptionException::InvalidLevel::get()
{
	return _invalidLevelValue;
}

SocketOptionName SocketOptionException::InvalidName::get()
{
	return _invalidNameValue;
}
